home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3448 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  2.3 KB

  1. Path: news.mindlink.net!news
  2. From: genew@mindlink.bc.ca (Gene Wirchenko)
  3. Newsgroups: comp.lang.ada,comp.lang.c++,comp.lang.c,comp.lang.modula3,comp.lang.modula2,comp.lang.eiffel
  4. Subject: Re: Hungarian notation
  5. Date: Wed, 24 Jan 1996 04:45:41 GMT
  6. Organization: MIND LINK! - British Columbia, Canada
  7. Message-ID: <4e4djv$8gk@fountain.mindlink.net>
  8. References: <30C40F77.53B5@swsbbs.com> <4bd <4cc2b2$11jq@navajo.gate.net> <4cud8f$gup@news.netvision.net.il> <4dttefINNo29@keats.ugrad.cs.ubc.ca> <Pine.HPP.3.91.960122145028.27524A-100000@clear.cs.byu.edu> <dewar.822407363@schonberg>
  9. NNTP-Posting-Host: line109.nwm.mindlink.net
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. dewar@cs.nyu.edu (Robert Dewar) wrote:
  13.  
  14. >Douglas said
  15.  
  16. >"The way I was taught, you use typedefs only for variables that are likely
  17. >to change type (and you want to change all of the instances of that type
  18. >at once) and for cross-platform portability (in a multi-language
  19. >environment like Windows or when you are saving data to disk).  Using it
  20. >for most other things will, as you said, only hamper coding and debugging
  21. >efforts.  However, to use those examples to induce "typedefs are useless"
  22. >is jumping to a bad conclusion.  If you want to argue that the uses that
  23. >I gave are bad, we can do that, but to generalize without looking at all
  24. >potential uses isn't a good idea."
  25.  
  26. >It is really remarkable listening to this debate how little understanding
  27. >of abstract types most people have. A lot of writers, like Douglas, seem
  28. >to almost completely confuse the notions of type and representation.
  29.  
  30. >Indeed one could say that HN is all about enforcing this confusion!
  31. >and making sure that type abstraction is not used as a tool in your
  32. >program.
  33.  
  34.      A nasty point, but I think yes.
  35.  
  36. >Most amazing!
  37.  
  38.      I use HNish naming conventions a bit.  More I use them as
  39. abbreviations for part of the meaning.  For an input file handle, I
  40. might use "fhinput".
  41.      As to the alphabet soup, I've seen: it's nice at the system
  42. level.  I was an early user of CTOS ('81/'82 or so) and they
  43. documented system call parameters using prefixes.  It helped me get
  44. the type right and once I got used to it was a great timesaver.
  45.      BUT... it is not abstract datatyping.
  46.  
  47. Sincerely,
  48.  
  49. Gene Wirchenko
  50.  
  51. C Pronunciation Guide:
  52.      y=x++;     "wye equals ex plus plus semicolon"
  53.      x=x++;     "ex equals ex doublecross semicolon"
  54.  
  55.